[Leetcode] Course Schedule II

[Problem link] What is topological sort? You simply keep picking nodes with no incoming edges (or with in-order 0). No valid solution? You might encounter situations where none of the nodes (yet to be processed) have an inorder of 0. This means that the graph does not have a valid topological sort (and we need … Continue reading [Leetcode] Course Schedule II